
<template>
  <div>看打印</div>
</template>

<script>
export default {
  created () {
    function copy (target) {
    // ...在这里补充代码
      const a = []
      target.forEach((item, index) => {
        a[index] = item
      })
      return a
    }
    const arr = [1, 2, 3, 4, 5]
    const brr = copy(arr)
    arr.push(100)
    console.log(brr) // [1, 2, 3, 4, 5]
  }
}
</script>

<style>

</style>
